{% extends "afcp/base.html" %}
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
  - http://heavyz.blogspot.com/
  - http://buggarden.blogspot.com/

  Created on 2008-11-14.
  $Id: post_announcement.html 298 2008-12-11 18:10:46Z heavyzheng $
-->
{% endcomment %}

{#------------------------------------------------------------------------------------------------#}

{% block html_head %}
<title>Post Announcement</title>
{% endblock %}{# html_head #}

{#------------------------------------------------------------------------------------------------#}

{% block header %}
{% endblock %}{# header #}

{#------------------------------------------------------------------------------------------------#}

{% block content %}

<h2>Post a new announcement</h2>

<div class="section">

  {% if user_.profile and user_.profile.is_editor %}
  
    <form action="." method="POST">
      <table width="100%">
        <tr>
          <td class="nowrap" width="1%" align="right">Title:</td>
          <td class="nowrap"><input type="text" size="70" name="title"/></td>
        </tr>
        <tr>
          <td class="nowrap" width="1%" align="right">Resume:</td>
          <td class="nowrap"><textarea cols="60" rows="6" name="resume"></textarea></td>
        </tr>
        <tr>
          <td class="nowrap" width="1%" align="right">Content:</td>
          <td class="nowrap"><textarea cols="60" rows="12" name="content"></textarea></td>
        </tr>
        <tr>
          <td></td>
          <td class="nowrap">
            You are logged-in as {{ user_.email }}.
            <br/>
            <input type="submit" value="Submit"/>
          </td>
        </tr>
      </table>
    </form>
  
  {% else %}
  
    <div class="error message">
      You don't have permission to post an announcement.
      {% if user_ %}
        (You are logged-in as {{ user_.email }})
      {% else %}
        (You are not logged in)
      {% endif %}
    </div>
  
  {% endif %}

</div><!--/.section-->

{% endblock %}{# content #}



